/*
 * AddPower.h
 *
 *  Created on: Jan 12, 2009
 *      Author: sez
 */

#ifndef ADDPOWER_H_
#define ADDPOWER_H_

#include <QDialog>

#include "AddUpdateDialog.h"

class QStringListModel;
class AddPowerModels;
class Power;
namespace Ui {
    class AddPowerDialog;
}

class AddPower: public AddUpdateDialog
{
    Q_OBJECT
public:
    static const char *BASE_ICON_NAMES[];

    AddPower(QWidget *parent = 0);
    virtual ~AddPower();
    TitledData *data();
    static AddPower *dialog(QWidget *parent = 0);
protected:
    void loadData();
    void saveData();
    void setupData();
    void clearData();
private Q_SLOTS:
    void on_addKeywordToolButton_clicked(bool);
    void on_deleteKeywordToolButton_clicked(bool);
private:
    Ui::AddPowerDialog *mAddPower;
    AddPowerModels *mModels;
    QStringListModel *mKeywordModel;
    Power *mData;
};

#endif /* ADDPOWER_H_ */
